<!DOCTYPE html>
<html lang="cn" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>互联网村镇管理平台</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/common.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/css/main.css}" />
</head>
<body>

    <div class="container clearfix">

        <!--/sidebar-->
        <div class="main-wrap">
            <div class="crumb-wrap">
                <div class="crumb-list">
                    <i class="icon-font">&#xe923;</i>
                    <a href="javascript:void(0);">信息管理</a>
                    <span class="crumb-step">&gt;</span>
                    <span class="crumb-name">文化活动</span>
                </div>
            </div>
            <div class="search-wrap">
                <div class="search-content">
                    <form th:action="@{/activity/list}" method="post" id="queryForm">
                        <table class="search-tab" style="margin-left: 10px;">
                            <tr>
                            	<th width="70">活动进度:</th>
                                <td>
                                    <select name="translate" style="height: 30px; width: 80px;" onchange="javascript:$('#queryForm').submit();">
                                        <option value="-1">全部</option>
                                        <option value="1" th:selected="${translate == '1'}">进行中</option>
                                        <option value="2" th:selected="${translate == '2'}">已完成</option>
                                    </select>
                                </td>
                                <th width="70">活动标题:</th>
                                <td>
                                    <input class="common-text" placeholder="活动标题" name="title" th:value="${title }" type="text" />
                                </td>
                                <th width="70">活动简介:</th>
                                <td>
                                    <input class="common-text" placeholder="活动简介" name="desc" th:value="${desc }" type="text" />
                                </td>
                                <th width="70">活动内容:</th>
                                <td>
                                    <input class="common-text" placeholder="活动内容" name="content" th:value="${content }" type="text" />
                                </td>
                                <td>
                                    <input class="btn btn-primary btn2" name="sub" value="查询" type="submit">
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
            <div class="result-wrap">
                <div class="result-title">
                    <div class="result-list">
                        <a th:href="@{/activity/addActivity}" href=""><i class="icon-font">&#xea0a;</i>新增活动</a>
                        <a id="batchDel" href="javascript:batchDeleteActivitys();"><i class="icon-font">&#xe9ac;</i>批量删除</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th class="tc" width="5%"><input class="allChoose" onclick="javascript:shiro.form.setCheckBoxSelectToggle('activityIdCheckBox');" type="checkbox" /></th>
                            <th width="20%">活动标题</th>
                            <th width="20%">活动简介</th>
                            <th width="20%">活动内容</th>
                            <th width="15%">活动进度</th>
                            <th width="15%">发布时间</th>
                            <!--<th>更新时间</th>-->
                            <th class="tc" width="10%">操作</th>
                        </tr>

                        <tr th:each="activity:${activityInfoList}">
                            <td class="tc">
                                <input name="activityIdCheckBox" th:value="${activity?.activityId }" type="checkbox" />
                            </td>
                            <td th:text="${activity?.title }"></td>
                            <td th:text="${activity?.desc }"></td>
                            <td th:text="${activity?.content }"></td>
                            <td th:text="${activity?.translate==1?'进行中':'已完成' }"></td>
                            <td th:text="${#dates.format(activity?.createTime,'yyyy-MM-dd HH:mm:ss')}"></td>
                            <td class="tc">
                                <a class="link-update" th:href="@{'/activity/editActivity/' + ${activity?.activityId}}">修改</a>
                                <a class="link-del" th:href="'javascript:deleteActivity(\'' + ${activity?.activityId } + '\');'">删除</a>
                            </td>
                        </tr>
                    </table>

                </div>
                <div class="list-page" th:utext="${pageHtml}">
                </div>
            </div>
        </div>


    </div>
    <div th:include="admin/common/common"></div>
    <script type="text/javascript" th:src="@{/js/web/activity/activityInfo.js?v=1.0}"></script>
</body>
</html>